#pragma once
#include <wx/dialog.h>
#include <wx/thread.h>
#include "../../library/QuickThread.h"

class wxStaticText;
class wxTextCtrl;
class AdSkinButton;
class CLoginDlg : public wxDialog, public uiThreadRun
{
public:
	CLoginDlg(void);
	~CLoginDlg(void);

private:
	DECLARE_EVENT_TABLE()

private:
	wxStaticText		*m_staticError;
	wxTextCtrl			*m_textServer;
	wxTextCtrl			*m_textUser;
	wxTextCtrl			*m_textPwd;
	AdSkinButton		*m_btnLogin;

public:
	virtual void*	ThreadEntry(void* param);

private:
	void OnCancel( wxCommandEvent &event );
	void OnLogin( wxCommandEvent &event );
	void OnBeginLogin( uiThreadEvent &event );
	void OnEraseBackground(wxEraseEvent& rEvent);
	//void OnCtlColor( WXHDC hDC ,WXHWND hWnd ,WXUINT uCtlColor ,WXUINT uMessage ,WXWPARAM wParam ,WXLPARAM lParam );
};


